<script setup>
import { useCounterStore } from '@/store/counter.js'
 
 const counterStore = useCounterStore()
</script>

<template>
  <div>
    我是son2.vue - {{ counterStore.count }}
    <button @click="counterStore.subCount">-</button>
  </div>

</template>

<style scoped>

</style>
